package com.tonggedata.dataapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tonggedata.dataapi.entity.ApiStrategy;
import com.tonggedata.dataapi.dto.ApiStrategyDto;
import com.tonggedata.dataapi.dto.ApiStrategyParamDto;
import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.User;

import java.util.Map;

/**
 * ==================================================
 *
 * @author : tonggedata
 * @fileName:
 * @create : 2022-06-19 13:08:47
 * @Description： api策略表, 对应网关各类插件
 * ==================================================
 * @since 1.0.0
 */
public interface ApiStrategyService extends IService<ApiStrategy> {

    Result queryApiStrategyListPaging(User loginUser, String searchVal, Integer pageNo, Integer pageSize);

    Map<String, Object> queryApiStrategyList(User loginUser, String name);

    Map<String, Object> queryApiStrategy(long id);

    Result<Object> updateApiStrategy(long id, User loginUser, ApiStrategyParamDto apiStrategyParam);

    Result<Object> delete(User loginUser, long id);

    Result<Object> createApiStrategy(User loginUser, ApiStrategyParamDto apiStrategyParam);


}
